import axi from 'axios';

export default {
  getDetailByUserIdApi(p) {
    return axi.get('/bdelivery/getDetailByUserId', {
      params: p,
      headers: {
        Authorization: `Bearer ${sessionStorage.getItem('userToken')}`,
      },
    });
  },
  getCityApi() {
    return axi.get('/ecity/queryECitys', {
      headers: {
        Authorization: `Bearer ${sessionStorage.getItem('userToken')}`,
      },
    });
  },
  getCandidateDetailApi(p) {
    return axi.get('/bcandidate/getInfo', {
      params: p,
      headers: {
        Authorization: `Bearer ${sessionStorage.getItem('userToken')}`,
      },
    });
  },
};
